package com.ruoyi.contact.service.impl;

import com.ruoyi.common.core.text.Convert;
import com.ruoyi.common.utils.DateUtils;
import com.ruoyi.contact.domain.ContactLevel;
import com.ruoyi.contact.mapper.ContactLevelMapper;
import com.ruoyi.contact.mapper.ContactReportMapper;
import com.ruoyi.contact.service.IContactLevelService;
import com.ruoyi.contact.service.IContactReportService;
import org.springframework.beans.factory.annotation.Autowired;



import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

/**
 * 联系人等级Service业务层处理
 *
 * @author useragent-1
 * @date 2025-06-04
 */
@Service
public class ContactReportServiceImpl implements IContactReportService {

    @Resource
    private ContactReportMapper contactReportMapper;

    @Override
    public List<Map<String, Integer>> selectContactCountByCategory() {
        return contactReportMapper.selectContactCountByCategory();
    }

    @Override
    public List<Map<String, Object>> selectContactCountByMonth() {
        return contactReportMapper.selectContactCountByMonth();
    }
}
